public class KmToMilesFormat {
	
	static final double MILES_PER_KILOMETER = 0.621;

	public static void main(String[] args) {
		double kilometers = Double.parseDouble("22.5");
		double miles = kilometers * MILES_PER_KILOMETER;
		String outStr = String.format("%.2f kilometers is %.2f miles.", kilometers, miles);
		System.out.println(outStr);
	}
}
